import 'package:flutter/material.dart';

class SignButton extends StatelessWidget {
  final GestureTapCallback onTap;

  const SignButton({Key key, this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
        padding: EdgeInsets.symmetric(horizontal: 10),
        decoration: BoxDecoration(
          color: Color(0xff2ccba2),
          borderRadius: BorderRadius.all(Radius.circular(20)),
        ),
        child: Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            Image.asset(
              'assets/images/ic_calendar.png',
              color: Colors.white,
              width: 16,
            ),
            Padding(
              padding: const EdgeInsets.all(8.0),
              child: Text(
                '每日签到',
                style: TextStyle(color: Colors.white),
              ),
            )
          ],
        ),
      ),
    );
  }
}
